<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>index</title>
</head>
<body>
<h1>index</h1>
<form action="/user/signIn" method="post">
    <input type="hidden" value="sign_in">
    <input type="text" name="name" placeholder="NAME" required>
    <br>
    <input type="password" name="password" placeholder="PASSWORD" required>
    <br>
    <br>
    <input type="submit" value="Sign in">
    <a href="sign_up.jsp">Sign up</a>
</form>
<h1 style="color: red;">${sessionScope.message}</h1>
<p style="color: red;">${sessionScope.error}</p>
</body>
</html>